package com.cmower.baeldung.arrays1;

/**
 * @author 沉默王二，一枚有趣的程序员
 */
public class VarargsDemo {
    void varargsMethod(String... varargs) {}

    public static void main(String[] args) {
VarargsDemo demo = new VarargsDemo();
String[] anArray = new String[] {"沉默王二", "一枚有趣的程序员"};
demo.varargsMethod(anArray);

        demo.varargsMethod("沉默王二", "一枚有趣的程序员");
    }
}
